This widgit was created by WGSXFrank for the ModMyi community and may be shared anywhere. The widgit was made using the "jPlayer" jQuery script. 

---------------------------------------------------------------------------------------------------------------

How to add music:

1. SSH your .mp3 music files to the "PerPageHtml/MP3Player/music" directory. 
2. Open up "Widget.html"
3. Find the following lines:

		{
			name:"Test - Test Song",
			mp3:"music/test_-_test-song.mp3"
		},
		
4. Replace "Test - Test Song" with the name of your mp3.
5. Replace "music/test_-_test-song.mp3" with "music/<the name of your mp3>.mp3"
6. Save the file and respring your iPhone/iPod

Note: To add additional songs, you can copy the whole code segment above and paste it again and again. 

Example:
		{
			name:"Song 1",
			mp3:"music/song-1.mp3"
		},
		{
			name:"Song 2",
			mp3:"music/song-2.mp3"
		},
		{
			name:"Song 3",
			mp3:"music/song-3.mp3"
		},
		
		{
			name:"Song 4",
			mp3:"music/song-4.mp3"
		},	
		{
			name:"Song 5",
			mp3:"music/song-5.mp3"
		},
		
Then, save the file and respring your iPhone/iPod.

The"{" at the beginning and the "}," at the end of each song entry are both EXTREMELY important. Do not forget them! 


----------------------------------------------------------------------------------------------------------------

To customize the look of the MP3Player:

1. Open up the "jplayer.blue.monday.css" file located in the "PerPageHTML/MP#Player/skin/" directory. 
2. Edit to your hearts content (You should be good with CSS to do this)
3. Save the file and resrping. 

Note: To edit the look of the buttons, you must open up the "jplayer.blue.monday.jpg" file in an image editing program such as Photoshop or Gimp.

To change the position of the MP3Player, you need to edit the "Info.plist" file in any text editor. Look for the following lines: 

	<key>widgetX</key> 
	<string>0</string>   <----this line defines the horizontal alignment
	<key>widgetY</key>
	<string>92</string>   <----this line defines the vertical alignment

----------------------------------------------------------------------------------------------------------------

Additional Notes: 

There is a bug with this widgit which causes the first song in the playlist to not play until another playlist song is played first. I'm trying to figure out how to fix this, but it's not that big of a deal.